
import subprocess
import os

compile_file = ".idea"
# 切换项目目录
os.chdir("E:\\edePrice")
# commit 内容
content = input("请输入提交内容:")

# git 指令列表
commands = [
    "git add .",
    "git commit -m {0}".format( content ),
    "git push origin"
]
# 依次执行命令
for c in commands:
    subprocess.call( c )









